-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get Opera Ready for MV3 #13190
Get Opera Ready for MV3 #13190
Conversation
New Issues (1)Checkmarx found the following issues in this Pull Request
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #13190 +/- ##
==========================================
- Coverage 35.28% 35.28% -0.01%
==========================================
Files 3124 3124
Lines 92358 92349 -9
Branches 16794 16793 -1
==========================================
- Hits 32590 32586 -4
+ Misses 57311 57306 -5
Partials 2457 2457 ☔ View full report in Codecov by Sentry. |
…clients into ps/pm-17198/opera-mv3
@@ -165,6 +165,13 @@ export class UpdateBadge { | |||
return; | |||
} | |||
|
|||
if ("opr" in this.win && BrowserApi.isManifestVersion(3)) { | |||
// setIcon API is currenly broken for Opera MV3 extensions | |||
// https://forums.opera.com/topic/75680/opr-sidebaraction-seticon-api-is-broken-access-to-extension-api-denied?_=1738349261570 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"__opera___execute_sidebar_action": { | ||
"suggested_key": { | ||
"default": "Alt+Shift+Y", | ||
"linux": "Alt+Shift+U" | ||
}, | ||
"description": "__MSG_commandOpenSidebar__" | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copy from MV2 manifest:
clients/apps/browser/src/manifest.json
Lines 106 to 112 in 65024a1
"__opera___execute_sidebar_action": { | |
"suggested_key": { | |
"default": "Alt+Shift+Y", | |
"linux": "Alt+Shift+U" | |
}, | |
"description": "__MSG_commandOpenSidebar__" | |
}, |
"__opera__sidebar_action": { | ||
"default_title": "Bitwarden", | ||
"default_panel": "popup/index.html?uilocation=sidebar", | ||
"default_icon": "images/icon19.png", | ||
"open_at_install": false, | ||
"browser_style": false | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copy from MV2 manifest:
clients/apps/browser/src/manifest.json
Lines 160 to 166 in 65024a1
"__opera__sidebar_action": { | |
"default_title": "Bitwarden", | |
"default_panel": "popup/index.html?uilocation=sidebar", | |
"default_icon": "images/icon19.png", | |
"open_at_install": false, | |
"browser_style": false | |
}, |
🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-17198
📔 Objective
This gets Opera ready for MV3, it adds opera entries into the
manifest.v3.json
file so that the sidebar is available. Currently the ability to set the sidebar icon is broken so we are skipping that for now. The badge number is still working fine though. We just won't get the gray icon or the blue plus locked icon. Those icons still work fine for the popup action though.📸 Screenshots
Logged out:
![Screenshot 2025-01-31 at 2 59 30 PM](https://private-user-images.githubusercontent.com/19896123/408712518-c710aab1-e6d4-43b7-b77a-cb2c59285c34.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NzA3NTEsIm5iZiI6MTczOTY3MDQ1MSwicGF0aCI6Ii8xOTg5NjEyMy80MDg3MTI1MTgtYzcxMGFhYjEtZTZkNC00M2I3LWI3N2EtY2IyYzU5Mjg1YzM0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDAxNDczMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFkMTJiYzU4MzhiYTMwNGQ4NjE4NmFkOWM5MDIyYzE2NDNlOTM5OTg2ZmRkMjc2YzM1NWY3NzZlNThhYWY1NTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0._XFerh2fAvvLbQlF3jefN8_ZVBGQ3Ukq1NmhrtcPXb8)
Unlocked with ciphers for page:
![Screenshot 2025-01-31 at 3 00 01 PM](https://private-user-images.githubusercontent.com/19896123/408712616-aefa119e-9021-4048-9a0b-cb1a8aa01367.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NzA3NTEsIm5iZiI6MTczOTY3MDQ1MSwicGF0aCI6Ii8xOTg5NjEyMy80MDg3MTI2MTYtYWVmYTExOWUtOTAyMS00MDQ4LTlhMGItY2IxYThhYTAxMzY3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDAxNDczMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ2NjlhY2Q1Njk1NmE4NzY4OGQ2M2Q5MDIwNGJkNTc2OWE4YjA4MDU3NDFmNzk2MDgyMDI2ZGJlODgxMjM3YzImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.DWzs_7_XV01R61548DQe6Q6CWlw5I2Ns2Zcr2sWEwxQ)
Locked:
![Screenshot 2025-01-31 at 3 00 13 PM](https://private-user-images.githubusercontent.com/19896123/408712710-f3bd1d10-6637-46d7-ba4a-50deac0dc022.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NzA3NTEsIm5iZiI6MTczOTY3MDQ1MSwicGF0aCI6Ii8xOTg5NjEyMy80MDg3MTI3MTAtZjNiZDFkMTAtNjYzNy00NmQ3LWJhNGEtNTBkZWFjMGRjMDIyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDAxNDczMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM2NDkxZWNjZWU0M2Q2ZmNjNWUwMjA2Zjc1OTFjNzIxNzA5MWRlOTVkMDliNjM0OTBjYjIwZDc0MWE4MDIwNDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.hiS1Afk97eJNAUdAJCB-umjJ7KCbgm31YLjVw_M4Ajg)
Unlocked with no ciphers for page:
![Screenshot 2025-01-31 at 3 00 41 PM](https://private-user-images.githubusercontent.com/19896123/408712765-60cb3cb7-021b-484d-9990-355586a95a1e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NzA3NTEsIm5iZiI6MTczOTY3MDQ1MSwicGF0aCI6Ii8xOTg5NjEyMy80MDg3MTI3NjUtNjBjYjNjYjctMDIxYi00ODRkLTk5OTAtMzU1NTg2YTk1YTFlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDAxNDczMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM4M2QzM2I3YmZmZDE0MmIzNTliNjFhMDNkZTZjMzkwZDJmNjM4ODM1ZGIxZGNmNWI4NzI3OTZhOWIxZmQ3YTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.E_rQqAaZ-Lfn9H3NXWr8iSwosQMmvQXb5-_bJc2bhbM)
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:
) or similar for great changes:memo:
) or ℹ️ (:information_source:
) for notes or general info:question:
) for questions:thinking:
) or 💭 (:thought_balloon:
) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:
) for suggestions / improvements:x:
) or:warning:
) for more significant problems or concerns needing attention:seedling:
) or ♻️ (:recycle:
) for future improvements or indications of technical debt:pick:
) for minor or nitpick changes